import request from '@/utils/request.js'
let orderApi = {
	// 生成订单
	ordergenerate: (data, config) => request.post('/user/ordergenerate', data, config),
	// 支付
	wechatpayorder: (data, config) => request.post('/user/wechatpayorder', data, config),
	// 订单列表
	orderlist: (data, config) => request.post('/user/orderlist', data, config),
	// 取消订单
	orderqx: (data, config) => request.post('/user/orderqx', data, config),
	// 申请退款
	ordertk: (data, config) => request.post('/user/ordertk', data, config),
	// 订单详情
	orderinfo: (data, config) => request.post('/user/orderinfo', data, config),

	// 更新订单
	orderupdate: (data, config) => request.post('/user/orderupdate', data, config),

	ordergdanpin: (data, config) => request.post('/user/ordergdanpin', data, config),
	blockorders: (data, config) => request.post('/user/blockorders', data, config),


}

export default orderApi